<template>
  <view>
    <u-navbar
      :title="$t('home_mail')"
      showback="true"
      :custom-back="backFn"
    ></u-navbar>
    <view style="width: 100%; margin-top: 50%">
      <view style="margin: auto auto; width: 120px; height: 93px">
        <image
          src="/static/image/svg/empty.png"
          style="width: 80px; height: 93px; margin-left: 20px"
        ></image>
        <view style="text-align: center; color: #888888">{{
          $t("common.hasNoData")
        }}</view>
      </view>
      <!-- 蜜桃源码网 mitaobo.com m8c.net m8c.net -->
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      article: {},
    };
  },
  onLoad(options) {
    const { id } = options;
    this.id = id;
  },
  onShow() {
    //this.getNewsDetail()
  },
  methods: {
    backFn() {
      uni.switchTab({
        url: "/pages/index/index",
      });
    },
    getNewsDetail() {
      this.$u.api.index.getNewsDetail(this.id).then((res) => {
        this.article = res.message;
      });
    },
  },
};
</script>

<style lang="scss">
page {
  background: #fafafb;
}
</style>
